<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="vKpTuopanList" checkbox="true" pagination="true" fitColumns="true" title="托盘库存" actionUrl="vKpTuopanController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="id"  field="id"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="客户名称"  field="cusName" dictionary="t_kp_cus,cus_name,cus_name" query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="在外托盘"  field="xindai"  queryMode="group"  width="120"></t:dgCol>
   <%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
   <%--<t:dgDelOpt title="删除" url="vKpTuopanController.do?doDel&id={id}" urlclass="ace_button"  urlfont="fa-trash-o"/>--%>
      <t:dgToolBar operationCode="hscreate" title="回收托盘" icon="icon-add" url="tKpTuopanController.do?goAdd&by1=回收&by2=回收时间" funname="add"></t:dgToolBar>
      <t:dgToolBar operationCode="fccreate" title="发出托盘" icon="icon-add" url="tKpTuopanController.do?goAdd&by1=发出&by2=发出时间" funname="add"></t:dgToolBar>

   <%--<t:dgToolBar title="查看发出明细" icon="icon-putout"   funname="viewfachu()"></t:dgToolBar>--%>
   <t:dgToolBar title="回收与发出明细"  icon="icon-put"    funname="viewhuishou()"></t:dgToolBar>
   <%--<t:dgToolBar title="查看" icon="icon-search" url="vKpTuopanController.do?goUpdate" funname="detail"></t:dgToolBar>--%>
   <%--<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>--%>
      <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
      <%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/yserp/kpv/vKpTuopanList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 });
 function viewfachu() {
     var addurl = "cgReportController.do?list&id=r_kp_tuopan_fahu";
     createdetailwindow("托盘发出详情", addurl, 800, 400);
     //
 }
 function viewhuishou() {
     // tKpTuopanController.do?list
     var addurl = "tKpTuopanController.do?list";
     createdetailwindow("托盘详情", addurl, 800, 400);
 }
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'vKpTuopanController.do?upload', "vKpTuopanList");
}

//导出
function ExportXls() {
	JeecgExcelExport("vKpTuopanController.do?exportXls","vKpTuopanList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("vKpTuopanController.do?exportXlsByT","vKpTuopanList");
}

 </script>